package com.example.day2.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.day2.R;
import com.example.day2.entity.GoodsTableResult;

public class GoodsTypeAdapter extends BaseQuickAdapter<GoodsTableResult.DataBean, BaseViewHolder> {
    public GoodsTypeAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, GoodsTableResult.DataBean dataBean) {
            baseViewHolder.setText(R.id.tv,dataBean.getCategory_name());
    }
}
